package com.atguigu.gulimall.order.service;

import com.atguigu.gulimall.order.vo.OderSubmitVo;
import com.atguigu.gulimall.order.vo.OrderConfirmVo;
import com.atguigu.gulimall.order.vo.SubmitOrderResponseVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OmsOrderEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单表
 *
 * @author zhangxiaosan
 * @email 424207204@qq.com
 * @date 2021-04-11 13:50:06
 */
public interface OmsOrderService extends IService<OmsOrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo toTrade() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OderSubmitVo oderSubmitVo);
}

